import { HeadTags } from "vuepress/config";
import baidutj from "../common/baidutj.js";

// head
export default <HeadTags>[
  // 注入到页面<head> 中的标签，格式[tagName, { attrName: attrValue }, innerHTML?]
  ["link", { rel: "shortcut icon", href: "/img/favicon.ico" }], //favicons，资源放在public文件夹
  [
    "script",
    {
      type: "text/javascript",
      src: "https://cdn.bootcdn.net/ajax/libs/jquery/3.7.1/jquery.min.js",
    },
  ],
  // 插入播放器脚本
  [
    "script",
    {
      type: "text/javascript",
      id: "myhk",
      src: "https://myhkw.cn/api/player/174131850675",
      key: "174131850675",
      m: "1",
      lr: "l",
    },
  ],
  //看板娘
  [
    "script",
    {
      src: "https://fastly.jsdelivr.net/gh/stevenjoezhang/live2d-widget@latest/autoload.js",
    },
  ],
  // 在线聊天
  [
    "script",
    {
      src: "https://assets.salesmartly.com/js/project_23232_114665_1724296502.js",
      defer: true,
    },
  ],
  // 一言文字
  [
    "script",
    {
      src: "https://v1.hitokoto.cn/?encode=js&select=%23hitokoto",
      defer: true,
    },
  ],
  // Twikoo 评论系统
  [
    "script",
    {
      src: "https://cdn.jsdelivr.net/npm/twikoo@1.6.40/dist/twikoo.all.min.js",
    },
  ],
  [
    "link",
    {
      rel: "stylesheet",
      href: "//at.alicdn.com/t/font_3114978_qe0b39no76.css",
    },
  ], // 阿里在线矢量库
  ["meta", { name: "referrer", content: "no-referrer-when-downgrade" }], // 解决 Chrome 网站统计不准确问题

  [
    "noscript",
    {},
    '<meta http-equiv="refresh" content="0; url=https://www.youngkbt.cn/noscript/"><style>.theme-vdoing-content { display:none }',
  ], // 私密文章模块需要

  [
    "meta",
    {
      name: "keywords",
      content:
        "Young Kbt个人博客, VuePress搭建, 学习Java、Web、框架、微服务、工具、前端等相关知识, 记录生活和技术路程。",
    },
  ],
  ["meta", { name: "theme-color", content: "#11a8cd" }], // 移动浏览器主题颜色

  // 下面四个 script 是 demo-block 插件用到，但是因为导航栏兼容问题，不再使用
  // ['script', { src: 'https://unpkg.zhimg.com/react/umd/react.production.min.js' }],
  // ['script', { src: 'https://unpkg.zhimg.com/react-dom/umd/react-dom.production.min.js' }],
  // ['script', { src: 'https://unpkg.zhimg.com/vue/dist/vue.min.js' }],
  // ['script', { src: 'https://unpkg.zhimg.com/@babel/standalone/babel.min.js' }],
  // Twikoo 评论系统
  // ['script', { src: 'https://cdn.staticfile.org/twikoo/1.6.7/twikoo.all.min.js' }],
  [
    "script",
    {
      src: "https://cdn.jsdelivr.net/npm/twikoo@1.6.40/dist/twikoo.all.min.js",
    },
  ],

  // 百度统计 js
  ["script", {}, baidutj],

  /*  [
     'script',
     {
       'data-ad-client': 'ca-pub-7828333725993554',
       async: 'async',
       src: 'https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js',
     },
   ], */ // 网站关联Google AdSense 与 html格式广告支持
];
